package com.kingwang.training.designpattern.observer.bo.jdk.propertychange;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

public class EmailTaskWatcher implements PropertyChangeListener {
    @Override
    public void propertyChange(PropertyChangeEvent evt) {
        System.out.println("Source: " + evt.getSource());
        System.out.println("Property: " + evt.getPropertyName());
        System.out.println("Old Value: " + evt.getOldValue());
        System.out.println("New Value: " + evt.getNewValue());
    }
}
